package com.publishproject;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.android_base.core.common.adapter.CustomBaseAdapter;

import java.util.List;

/**
 * Created by tanghongbin on 2017/9/4.
 */

public class ListAdapter extends CustomBaseAdapter<String>{

    public ListAdapter(Context mContext, List<String> mList) {
        super(mContext, mList);
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        TextView textView = new TextView(mContext);
        textView.setText(mList.get(position));
        return textView;
    }
}
